package com.yuda.campsite.service.impl;

import com.yuda.campsite.domain.BaoMingStudent;
import com.yuda.campsite.mapper.BaoMingStudnetMapper;
import com.yuda.campsite.service.BaoMingStudentService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: xiaohudie
 * @Date: 2021/9/28 17:12
 * @Version: 1.8
 */
@Service
public class BaoMingStudentServiceImpl implements BaoMingStudentService {
     @Autowired
     private BaoMingStudnetMapper baoMingStudnetMapper;
    @Override
    public List<BaoMingStudent> ALLStudent(Integer page, Integer offset) {
        return baoMingStudnetMapper.AllStudnet(page,offset);
    }

    @Override
    public BaoMingStudent DanGeStudent(String phone,String campsiteId) {
        return baoMingStudnetMapper.DanGeStudent(phone,campsiteId);
    }

    @Override
    public int shenghesuccess(@Param("examineStatus") String examineStatus,@Param("idCard") String idCard,@Param("campsiteId") String campsiteId) {
        return baoMingStudnetMapper.shenghesuccess(examineStatus, idCard,campsiteId);
    }

    @Override
    public int FailReason(String examineReason, String idCard) {
        return baoMingStudnetMapper.FailReason(examineReason, idCard);
    }


    @Override
    public List<BaoMingStudent> shenghechaxun(String jiguanProvince, String jiguanCity, String name, Integer page, Integer offset) {
        return baoMingStudnetMapper.shenghechaxun(jiguanProvince, jiguanCity, name, page, offset);
    }
}
